package cn.tsmchina.one.dao.category;

import java.util.List;

import cn.tsmchina.one.domain.category.Category;

public interface CategoryDao
{
	List<Category> getOneLevelCategories(long customerId);
	
	List<Category> getOneLevelCategories(int page, long customerId);
	
	List<Category> getChildrenByParent(String parentCid, long customerId);
	
	Category getById(int id);
	
	void updateCategory(Category category);

	void deleteCategory(int id);

	void addCategory(Category category);

	Category getByCategoryCid(String categoryCid, long customerId);
	
	Category getByCategoryLoginId(Integer loginId);
	
	String getNameByLoginId(Integer loginId);
}
